package com.design.observer.genernal;

/**
 * 抽象主题者
 * @author:         cong zhi
 * @createDate:     2023/8/2 10:57
 * @updateUser:     cong zhi
 * @updateDate:     2023/8/2 10:57
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
public interface Subject<E> {

    boolean attach(ObServer<E> observer);

    boolean detach(ObServer<E> observer);

    void notify(E event);
}
